<template>
  <div class="goodsDetail">
    <div class="flex_align">
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('大类') }}：</span>
        <el-input v-model="formInfo.LCategory" class="w164" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('大类名称') }}：</span>
        <el-input v-model="formInfo.LCategoryName" class="w164" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('中类') }}：</span>
        <el-input v-model="formInfo.MCategory" class="w164" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('中类名称') }}：</span>
        <el-input v-model="formInfo.MCategoryName" class="w164" />
      </div>
    </div>
    <div class="flex_align mt20">
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('小类') }}：</span>
        <el-input v-model="formInfo.SCategory" class="w164" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('小类名称') }}：</span>
        <el-input v-model="formInfo.SCategoryName" class="w164" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('品类编码') }}：</span>
        <el-input v-model="formInfo.CategoryCode" class="w164" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('品类名称') }}：</span>
        <el-input v-model="formInfo.CategoryName" class="w164" />
      </div>
    </div>
    <div class="flex_align mt20">
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('基本计量单位代码') }}：</span>
        <el-input v-model="formInfo.BaseUnitCode" class="w164" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('基本计量单位描述') }}：</span>
        <el-input v-model="formInfo.BaseUnitRemark" class="w164" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('物料拼接规则') }}：</span>
        <el-input v-model="formInfo.ItemRule" class="w164" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性1编码') }}：</span>
        <el-input v-model="formInfo.AttributeCode1" class="w164" type="text" />
      </div>
    </div>
    <div class="flex_align mt20">
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性1名称') }}：</span>
        <el-input v-model="formInfo.AttributeName1" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性2编码') }}：</span>
        <el-input v-model="formInfo.AttributeCode2" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性2名称') }}：</span>
        <el-input v-model="formInfo.AttributeName2" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性3编码') }}：</span>
        <el-input v-model="formInfo.AttributeCode3" class="w164" type="text" />
      </div>
    </div>
    <div class="flex_align mt20">
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性3名称') }}：</span>
        <el-input v-model="formInfo.AttributeName3" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性4编码') }}：</span>
        <el-input v-model="formInfo.AttributeCode4" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性4名称') }}：</span>
        <el-input v-model="formInfo.AttributeName4" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性5编码') }}：</span>
        <el-input v-model="formInfo.AttributeCode5" class="w164" type="text" />
      </div>
    </div>
    <div class="flex_align mt20">
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性5名称') }}：</span>
        <el-input v-model="formInfo.AttributeName5" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性6编码') }}：</span>
        <el-input v-model="formInfo.AttributeCode6" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性6名称') }}：</span>
        <el-input v-model="formInfo.AttributeName6" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性7编码') }}：</span>
        <el-input v-model="formInfo.AttributeCode7" class="w164" type="text" />
      </div>
    </div>
    <div class="flex_align mt20">
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性7名称') }}：</span>
        <el-input v-model="formInfo.AttributeName7" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性8编码') }}：</span>
        <el-input v-model="formInfo.AttributeCode8" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性8名称') }}：</span>
        <el-input v-model="formInfo.AttributeName8" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性9编码') }}：</span>
        <el-input v-model="formInfo.AttributeCode9" class="w164" type="text" />
      </div>
    </div>
    <div class="flex_align mt20">
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性9名称') }}：</span>
        <el-input v-model="formInfo.AttributeName9" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性10编码') }}：</span>
        <el-input v-model="formInfo.AttributeCode10" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性10名称') }}：</span>
        <el-input v-model="formInfo.AttributeName10" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性11编码') }}：</span>
        <el-input v-model="formInfo.AttributeCode11" class="w164" type="text" />
      </div>
    </div>
    <div class="flex_align mt20">
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性11名称') }}：</span>
        <el-input v-model="formInfo.AttributeName11" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性12编码') }}：</span>
        <el-input v-model="formInfo.AttributeCode12" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性12名称') }}：</span>
        <el-input v-model="formInfo.AttributeName12" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性13编码') }}：</span>
        <el-input v-model="formInfo.AttributeCode13" class="w164" type="text" />
      </div>
    </div>
    <div class="flex_align mt20">
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性13名称') }}：</span>
        <el-input v-model="formInfo.AttributeName13" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性14编码') }}：</span>
        <el-input v-model="formInfo.AttributeCode14" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性14名称') }}：</span>
        <el-input v-model="formInfo.AttributeName14" class="w164" type="text" />
      </div>
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性15编码') }}：</span>
        <el-input v-model="formInfo.AttributeCode15" class="w164" type="text" />
      </div>
    </div>
    <div class="flex_align mt20">
      <div class="mr20">
        <span class="color_494949 ft12 pr5">{{ translate('特性15名称') }}：</span>
        <el-input v-model="formInfo.AttributeName15" class="w164" type="text" />
      </div>
    </div>
  </div>
</template>
<script>
  import { translate } from '@/i18n'
  export default {
    name: 'Detail',
    components: {},
    props: {
      form: {
        type: Object,
        default: () => {
          return {}
        },
      },
    },
    emits: [],
    data() {
      return {
        formInfo: this.form,
      }
    },
    watch: {
      form(val) {
        this.formInfo = val
      },
    },
    methods: {
      translate(row) {
        return translate(row)
      },
    },
  }
</script>
<style lang="scss" scoped>
  .goodsDetail {
    height: 600px;
  }
  .flex_align {
    display: flex;
    align-items: center;
  }
  .tableDetail {
    padding: 10px;
    .button-add {
      text-align: end;
      padding: 10px;
    }
  }
  .mr20 {
    margin-right: 20px;
  }

  .w164 {
    width: 164px !important;
  }
  .inline-block {
    display: inline-block;

  }
  .mt20 {
    margin-top: 20px;
  }
  .mr10 {
    margin-right: 10px;
  }
  .mt10 {
    margin-top: 10px;
  }
  .w320 {
    width: 433px;
  }
  .color_494949 {
    width: 130px;
    display: inline-block;
    text-align: right;
  }
  .goodsDetail2 {
    min-height: 300px;
  }
  .flex_align {
    display: flex;
    align-items: center;
  }
  .tableDetail2 {
    padding: 10px;
    .button-add {
      text-align: end;
      padding: 10px;
    }
  }
  .main_active {
    display: inline-block;
    width: 120px;
    text-align: right;
  }
  .mr20 {
    margin-right: 20px;
  }

  .w400 {
    width: 400px !important;
  }
  .mt20 {
    margin-top: 10px;
  }
  .mr10 {
    margin-right: 10px;
  }
  ::v-deep input[type='number']::-webkit-inner-spin-button,
  ::v-deep input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
  }
  ::v-deep .el-scrollbar__wrap {
    overflow-x: auto;
    height: calc(100% + 20px); //多出来的20px是横向滚动条默认的样式
  }
  ::v-deep .el-scrollbar .el-scrollbar__wrap .el-scrollbar__view {
    white-space: nowrap;
    display: inline-block;
  }
  ::v-deep .el-table--scrollable-x .el-table__body-wrapper {
    overflow-x: hidden;
  }
</style>
